home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
vs
/
browser
/
cpn11b1.exe
/
DATA.Z
/
main.wrl
< prev
next >
Wrap
Text File
|
1996-10-29
|
46KB
|
1,833 lines
#VRML V2.0 utf8
#
# This file is conveted from VRML 1.0 to Moving Worlds.
# Copyright(C) 1996 Sony Corporation. All rights reserved.
# this version is compliant with VRML2.0 Draft #2 (May 30, 1996)
WorldInfo {
title "AnalogClock"
}
Background {
frontUrl "textures/bg.jpg"
backUrl "textures/bg.jpg"
bottomUrl "textures/bg.jpg"
leftUrl "textures/bg.jpg"
rightUrl "textures/bg.jpg"
topUrl "textures/bg.jpg"
}
NavigationInfo{
headlight FALSE
type ["FLY","EXAMINE"]
}
DEF Cameras Switch {
whichChild 0
choice [
Transform {
translation 0 0 7.5
children [
DEF Approach Viewpoint {
position 0 0.2 0.2
fieldOfView 0.785398
},
]
}
]
}
DirectionalLight{
intensity 2.0
direction 1.0 -1.0 -1.0
}
DirectionalLight{
intensity 2.0
direction -1.0 -1.0 -1.0
}
DEF ANALOG Transform {
# translation 0 1.5 0
children [
DEF MIN_TRANSFORM Transform {
children [
Transform {
translation 0 0.35 -0.1
children [
DEF SEC_SHAPE Shape {
appearance Appearance {
material Material {
diffuseColor 0.8 1 0.3
}
}
geometry Cylinder {
radius 0.05
height 0.8
}
},
]
}
]
}
DEF HOUR_TRANSFORM Transform {
children [
Transform {
translation 0 0.25 0
children [
DEF HOUR_SHAPE Shape {
appearance Appearance {
material Material {
diffuseColor 0.3 1 0.8
}
}
geometry Cylinder {
radius 0.05
height 0.6
}
},
]
}
]
}
DEF SEC0 Transform {
children [
Transform {
translation 0 1 0
children [
Shape {
appearance Appearance {
material DEF SEC0S Material {
diffuseColor 0 1 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
Transform {
# translation 0 -0.12 0
translation 0 0.88 0
children [
Shape {
appearance Appearance {
material DEF S0 Material {
diffuseColor 0 1 0.5
}
}
geometry Sphere {
radius 0.07
}
},
]
}
]
}
DEF SEC1 Transform {
children [
Transform {
translation 0.104528 0.994522 0
children [
Shape {
appearance Appearance {
material DEF SEC1S Material {
diffuseColor 0 0.997261 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC2 Transform {
children [
Transform {
translation 0.207912 0.978148 0
children [
Shape {
appearance Appearance {
material DEF SEC2S Material {
diffuseColor 0 0.989074 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC3 Transform {
children [
Transform {
translation 0.309017 0.951057 0
children [
Shape {
appearance Appearance {
material DEF SEC3S Material {
diffuseColor 0 0.975528 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC4 Transform {
children [
Transform {
translation 0.406737 0.913545 0
children [
Shape {
appearance Appearance {
material DEF SEC4S Material {
diffuseColor 0 0.956773 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC5 Transform {
children [
Transform {
translation 0.5 0.866025 0
children [
Shape {
appearance Appearance {
material DEF SEC5S Material {
diffuseColor 0 0.933013 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC6 Transform {
children [
Transform {
translation 0.587785 0.809017 0
children [
Shape {
appearance Appearance {
material DEF SEC6S Material {
diffuseColor 0 0.904508 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC7 Transform {
children [
Transform {
translation 0.669131 0.743145 0
children [
Shape {
appearance Appearance {
material DEF SEC7S Material {
diffuseColor 0 0.871572 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC8 Transform {
children [
Transform {
translation 0.743145 0.669131 0
children [
Shape {
appearance Appearance {
material DEF SEC8S Material {
diffuseColor 0 0.834565 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC9 Transform {
children [
Transform {
translation 0.809017 0.587785 0
children [
Shape {
appearance Appearance {
material DEF SEC9S Material {
diffuseColor 0 0.793893 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC10 Transform {
children [
Transform {
translation 0.866025 0.5 0
children [
Shape {
appearance Appearance {
material DEF SEC10S Material {
diffuseColor 0 0.75 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC11 Transform {
children [
Transform {
translation 0.913545 0.406737 0
children [
Shape {
appearance Appearance {
material DEF SEC11S Material {
diffuseColor 0 0.703368 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC12 Transform {
children [
Transform {
translation 0.951057 0.309017 0
children [
Shape {
appearance Appearance {
material DEF SEC12S Material {
diffuseColor 0 0.654508 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC13 Transform {
children [
Transform {
translation 0.978148 0.207912 0
children [
Shape {
appearance Appearance {
material DEF SEC13S Material {
diffuseColor 0 0.603956 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC14 Transform {
children [
Transform {
translation 0.994522 0.104528 0
children [
Shape {
appearance Appearance {
material DEF SEC14S Material {
diffuseColor 0 0.552264 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC15 Transform {
children [
Transform {
translation 1 1.7949e-09 0
children [
Shape {
appearance Appearance {
material DEF SEC15S Material {
diffuseColor 0 0.5 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
Transform {
# translation -0.12 0 0
translation 0.88 0 0
children [
Shape {
appearance Appearance {
material DEF S15 Material {
diffuseColor 0 0.5 0.5
}
}
geometry Sphere {
radius 0.05
}
},
]
}
]
}
DEF SEC16 Transform {
children [
Transform {
translation 0.994522 -0.104528 0
children [
Shape {
appearance Appearance {
material DEF SEC16S Material {
diffuseColor 0 0.447736 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC17 Transform {
children [
Transform {
translation 0.978148 -0.207912 0
children [
Shape {
appearance Appearance {
material DEF SEC17S Material {
diffuseColor 0 0.396044 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC18 Transform {
children [
Transform {
translation 0.951057 -0.309017 0
children [
Shape {
appearance Appearance {
material DEF SEC18S Material {
diffuseColor 0 0.345492 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC19 Transform {
children [
Transform {
translation 0.913545 -0.406737 0
children [
Shape {
appearance Appearance {
material DEF SEC19S Material {
diffuseColor 0 0.296632 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC20 Transform {
children [
Transform {
translation 0.866025 -0.5 0
children [
Shape {
appearance Appearance {
material DEF SEC20S Material {
diffuseColor 0 0.25 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC21 Transform {
children [
Transform {
translation 0.809017 -0.587785 0
children [
Shape {
appearance Appearance {
material DEF SEC21S Material {
diffuseColor 0 0.206107 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC22 Transform {
children [
Transform {
translation 0.743145 -0.669131 0
children [
Shape {
appearance Appearance {
material DEF SEC22S Material {
diffuseColor 0 0.165435 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC23 Transform {
children [
Transform {
translation 0.669131 -0.743145 0
children [
Shape {
appearance Appearance {
material DEF SEC23S Material {
diffuseColor 0 0.128428 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC24 Transform {
children [
Transform {
translation 0.587785 -0.809017 0
children [
Shape {
appearance Appearance {
material DEF SEC24S Material {
diffuseColor 0 0.0954915 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC25 Transform {
children [
Transform {
translation 0.5 -0.866025 0
children [
Shape {
appearance Appearance {
material DEF SEC25S Material {
diffuseColor 0 0.0669873 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC26 Transform {
children [
Transform {
translation 0.406737 -0.913545 0
children [
Shape {
appearance Appearance {
material DEF SEC26S Material {
diffuseColor 0 0.0432273 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC27 Transform {
children [
Transform {
translation 0.309017 -0.951057 0
children [
Shape {
appearance Appearance {
material DEF SEC27S Material {
diffuseColor 0 0.0244717 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC28 Transform {
children [
Transform {
translation 0.207912 -0.978148 0
children [
Shape {
appearance Appearance {
material DEF SEC28S Material {
diffuseColor 0 0.0109262 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC29 Transform {
children [
Transform {
translation 0.104528 -0.994522 0
children [
Shape {
appearance Appearance {
material DEF SEC29S Material {
diffuseColor 0 0.00273905 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC30 Transform {
children [
Transform {
translation 3.58979e-09 -1 0
children [
Shape {
appearance Appearance {
material DEF SEC30S Material {
diffuseColor 0 0 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
Transform {
# translation 0 0.12 0
translation 0 -0.88 0
children [
Shape {
appearance Appearance {
material DEF S30 Material {
diffuseColor 0 0 0.5
}
}
geometry Sphere {
radius 0.05
}
},
]
}
]
}
DEF SEC31 Transform {
children [
Transform {
translation -0.104528 -0.994522 0
children [
Shape {
appearance Appearance {
material DEF SEC31S Material {
diffuseColor 0 0.00273905 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC32 Transform {
children [
Transform {
translation -0.207912 -0.978148 0
children [
Shape {
appearance Appearance {
material DEF SEC32S Material {
diffuseColor 0 0.0109262 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC33 Transform {
children [
Transform {
translation -0.309017 -0.951057 0
children [
Shape {
appearance Appearance {
material DEF SEC33S Material {
diffuseColor 0 0.0244717 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC34 Transform {
children [
Transform {
translation -0.406737 -0.913545 0
children [
Shape {
appearance Appearance {
material DEF SEC34S Material {
diffuseColor 0 0.0432273 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC35 Transform {
children [
Transform {
translation -0.5 -0.866025 0
children [
Shape {
appearance Appearance {
material DEF SEC35S Material {
diffuseColor 0 0.0669873 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC36 Transform {
children [
Transform {
translation -0.587785 -0.809017 0
children [
Shape {
appearance Appearance {
material DEF SEC36S Material {
diffuseColor 0 0.0954915 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC37 Transform {
children [
Transform {
translation -0.669131 -0.743145 0
children [
Shape {
appearance Appearance {
material DEF SEC37S Material {
diffuseColor 0 0.128428 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC38 Transform {
children [
Transform {
translation -0.743145 -0.669131 0
children [
Shape {
appearance Appearance {
material DEF SEC38S Material {
diffuseColor 0 0.165435 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC39 Transform {
children [
Transform {
translation -0.809017 -0.587785 0
children [
Shape {
appearance Appearance {
material DEF SEC39S Material {
diffuseColor 0 0.206107 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC40 Transform {
children [
Transform {
translation -0.866025 -0.5 0
children [
Shape {
appearance Appearance {
material DEF SEC40S Material {
diffuseColor 0 0.25 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC41 Transform {
children [
Transform {
translation -0.913545 -0.406737 0
children [
Shape {
appearance Appearance {
material DEF SEC41S Material {
diffuseColor 0 0.296632 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC42 Transform {
children [
Transform {
translation -0.951057 -0.309017 0
children [
Shape {
appearance Appearance {
material DEF SEC42S Material {
diffuseColor 0 0.345492 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC43 Transform {
children [
Transform {
translation -0.978148 -0.207912 0
children [
Shape {
appearance Appearance {
material DEF SEC43S Material {
diffuseColor 0 0.396044 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC44 Transform {
children [
Transform {
translation -0.994522 -0.104528 0
children [
Shape {
appearance Appearance {
material DEF SEC44S Material {
diffuseColor 0 0.447736 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC45 Transform {
children [
Transform {
translation -1 -5.38469e-09 0
children [
Shape {
appearance Appearance {
material DEF SEC45S Material {
diffuseColor 0 0.5 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
Transform {
# translation 0.12 0 0
translation -0.88 0 0
children [
Shape {
appearance Appearance {
material DEF S45 Material {
diffuseColor 0 0.5 0.5
}
}
geometry Sphere {
radius 0.05
}
},
]
}
]
}
DEF SEC46 Transform {
children [
Transform {
translation -0.994522 0.104528 0
children [
Shape {
appearance Appearance {
material DEF SEC46S Material {
diffuseColor 0 0.552264 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC47 Transform {
children [
Transform {
translation -0.978148 0.207912 0
children [
Shape {
appearance Appearance {
material DEF SEC47S Material {
diffuseColor 0 0.603956 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC48 Transform {
children [
Transform {
translation -0.951057 0.309017 0
children [
Shape {
appearance Appearance {
material DEF SEC48S Material {
diffuseColor 0 0.654508 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC49 Transform {
children [
Transform {
translation -0.913545 0.406737 0
children [
Shape {
appearance Appearance {
material DEF SEC49S Material {
diffuseColor 0 0.703368 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC50 Transform {
children [
Transform {
translation -0.866025 0.5 0
children [
Shape {
appearance Appearance {
material DEF SEC50S Material {
diffuseColor 0 0.75 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC51 Transform {
children [
Transform {
translation -0.809017 0.587785 0
children [
Shape {
appearance Appearance {
material DEF SEC51S Material {
diffuseColor 0 0.793893 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC52 Transform {
children [
Transform {
translation -0.743145 0.669131 0
children [
Shape {
appearance Appearance {
material DEF SEC52S Material {
diffuseColor 0 0.834565 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC53 Transform {
children [
Transform {
translation -0.669131 0.743145 0
children [
Shape {
appearance Appearance {
material DEF SEC53S Material {
diffuseColor 0 0.871572 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC54 Transform {
children [
Transform {
translation -0.587785 0.809017 0
children [
Shape {
appearance Appearance {
material DEF SEC54S Material {
diffuseColor 0 0.904508 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC55 Transform {
children [
Transform {
translation -0.5 0.866025 0
children [
Shape {
appearance Appearance {
material DEF SEC55S Material {
diffuseColor 0 0.933013 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC56 Transform {
children [
Transform {
translation -0.406737 0.913545 0
children [
Shape {
appearance Appearance {
material DEF SEC56S Material {
diffuseColor 0 0.956773 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC57 Transform {
children [
Transform {
translation -0.309017 0.951057 0
children [
Shape {
appearance Appearance {
material DEF SEC57S Material {
diffuseColor 0 0.975528 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC58 Transform {
children [
Transform {
translation -0.207912 0.978148 0
children [
Shape {
appearance Appearance {
material DEF SEC58S Material {
diffuseColor 0 0.989074 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF SEC59 Transform {
children [
Transform {
translation -0.104528 0.994522 0
children [
Shape {
appearance Appearance {
material DEF SEC59S Material {
diffuseColor 0 0.997261 0.5
}
}
geometry Box {
size 0.05 0.05 0.25
}
# geometry Cube {
# width 0.05
# height 0.05
# depth 0.25
# }
},
]
}
]
}
DEF CLICK TouchSensor{}
]
}
DEF TIME TimeSensor{
# Draft #2 does not have discrete.
# discrete TRUE
loop TRUE
cycleInterval 0.4
stopTime -1
}
DEF SCRIPT Script{
url "scripts/clock.class"
eventIn SFTime tick
eventOut SFRotation setMin
eventOut SFRotation setHour
eventOut SFColor sec0
eventOut SFColor sec1
eventOut SFColor sec2
eventOut SFColor sec3
eventOut SFColor sec4
eventOut SFColor sec5
eventOut SFColor sec6
eventOut SFColor sec7
eventOut SFColor sec8
eventOut SFColor sec9
eventOut SFColor sec10
eventOut SFColor sec11
eventOut SFColor sec12
eventOut SFColor sec13
eventOut SFColor sec14
eventOut SFColor sec15
eventOut SFColor sec16
eventOut SFColor sec17
eventOut SFColor sec18
eventOut SFColor sec19
eventOut SFColor sec20
eventOut SFColor sec21
eventOut SFColor sec22
eventOut SFColor sec23
eventOut SFColor sec24
eventOut SFColor sec25
eventOut SFColor sec26
eventOut SFColor sec27
eventOut SFColor sec28
eventOut SFColor sec29
eventOut SFColor sec30
eventOut SFColor sec31
eventOut SFColor sec32
eventOut SFColor sec33
eventOut SFColor sec34
eventOut SFColor sec35
eventOut SFColor sec36
eventOut SFColor sec37
eventOut SFColor sec38
eventOut SFColor sec39
eventOut SFColor sec40
eventOut SFColor sec41
eventOut SFColor sec42
eventOut SFColor sec43
eventOut SFColor sec44
eventOut SFColor sec45
eventOut SFColor sec46
eventOut SFColor sec47
eventOut SFColor sec48
eventOut SFColor sec49
eventOut SFColor sec50
eventOut SFColor sec51
eventOut SFColor sec52
eventOut SFColor sec53
eventOut SFColor sec54
eventOut SFColor sec55
eventOut SFColor sec56
eventOut SFColor sec57
eventOut SFColor sec58
eventOut SFColor sec59
field MFColor secColors [
0 1 0.5 ,
0 0.997261 0.5 ,
0 0.989074 0.5 ,
0 0.975528 0.5 ,
0 0.956773 0.5 ,
0 0.933013 0.5 ,
0 0.904508 0.5 ,
0 0.871572 0.5 ,
0 0.834565 0.5 ,
0 0.793893 0.5 ,
0 0.75 0.5 ,
0 0.703368 0.5 ,
0 0.654508 0.5 ,
0 0.603956 0.5 ,
0 0.552264 0.5 ,
0 0.5 0.5 ,
0 0.447736 0.5 ,
0 0.396044 0.5 ,
0 0.345492 0.5 ,
0 0.296632 0.5 ,
0 0.25 0.5 ,
0 0.206107 0.5 ,
0 0.165435 0.5 ,
0 0.128428 0.5 ,
0 0.0954915 0.5 ,
0 0.0669873 0.5 ,
0 0.0432273 0.5 ,
0 0.0244717 0.5 ,
0 0.0109262 0.5 ,
0 0.00273905 0.5 ,
0 0 0.5 ,
0 0.00273905 0.5 ,
0 0.0109262 0.5 ,
0 0.0244717 0.5 ,
0 0.0432273 0.5 ,
0 0.0669873 0.5 ,
0 0.0954915 0.5 ,
0 0.128428 0.5 ,
0 0.165435 0.5 ,
0 0.206107 0.5 ,
0 0.25 0.5 ,
0 0.296632 0.5 ,
0 0.345492 0.5 ,
0 0.396044 0.5 ,
0 0.447736 0.5 ,
0 0.5 0.5 ,
0 0.552264 0.5 ,
0 0.603956 0.5 ,
0 0.654508 0.5 ,
0 0.703368 0.5 ,
0 0.75 0.5 ,
0 0.793893 0.5 ,
0 0.834565 0.5 ,
0 0.871572 0.5 ,
0 0.904508 0.5 ,
0 0.933013 0.5 ,
0 0.956773 0.5 ,
0 0.975528 0.5 ,
0 0.989074 0.5 ,
0 0.997261 0.5 ]
eventOut SFColor s0
eventOut SFColor s15
eventOut SFColor s30
eventOut SFColor s45
eventIn SFBool clicked
field MFColor sColors [
0 1 0.5 ,
0 0.5 0.5 ,
0 0 0.5 ,
0 0.5 0.5 ]
eventOut SFRotation rotation
}
# In Draft #2, cycleTime = (time + discrete(TRUE))
# ROUTE TIME.time TO SCRIPT.tick
#
ROUTE TIME.cycleTime TO SCRIPT.tick
ROUTE SCRIPT.rotation TO ANALOG.set_rotation
ROUTE SCRIPT.setMin TO MIN_TRANSFORM.set_rotation
ROUTE SCRIPT.setHour TO HOUR_TRANSFORM.set_rotation
ROUTE SCRIPT.sec0 TO SEC0S.set_diffuseColor
ROUTE SCRIPT.sec1 TO SEC1S.set_diffuseColor
ROUTE SCRIPT.sec2 TO SEC2S.set_diffuseColor
ROUTE SCRIPT.sec3 TO SEC3S.set_diffuseColor
ROUTE SCRIPT.sec4 TO SEC4S.set_diffuseColor
ROUTE SCRIPT.sec5 TO SEC5S.set_diffuseColor
ROUTE SCRIPT.sec6 TO SEC6S.set_diffuseColor
ROUTE SCRIPT.sec7 TO SEC7S.set_diffuseColor
ROUTE SCRIPT.sec8 TO SEC8S.set_diffuseColor
ROUTE SCRIPT.sec9 TO SEC9S.set_diffuseColor
ROUTE SCRIPT.sec10 TO SEC10S.set_diffuseColor
ROUTE SCRIPT.sec11 TO SEC11S.set_diffuseColor
ROUTE SCRIPT.sec12 TO SEC12S.set_diffuseColor
ROUTE SCRIPT.sec13 TO SEC13S.set_diffuseColor
ROUTE SCRIPT.sec14 TO SEC14S.set_diffuseColor
ROUTE SCRIPT.sec15 TO SEC15S.set_diffuseColor
ROUTE SCRIPT.sec16 TO SEC16S.set_diffuseColor
ROUTE SCRIPT.sec17 TO SEC17S.set_diffuseColor
ROUTE SCRIPT.sec18 TO SEC18S.set_diffuseColor
ROUTE SCRIPT.sec19 TO SEC19S.set_diffuseColor
ROUTE SCRIPT.sec20 TO SEC20S.set_diffuseColor
ROUTE SCRIPT.sec21 TO SEC21S.set_diffuseColor
ROUTE SCRIPT.sec22 TO SEC22S.set_diffuseColor
ROUTE SCRIPT.sec23 TO SEC23S.set_diffuseColor
ROUTE SCRIPT.sec24 TO SEC24S.set_diffuseColor
ROUTE SCRIPT.sec25 TO SEC25S.set_diffuseColor
ROUTE SCRIPT.sec26 TO SEC26S.set_diffuseColor
ROUTE SCRIPT.sec27 TO SEC27S.set_diffuseColor
ROUTE SCRIPT.sec28 TO SEC28S.set_diffuseColor
ROUTE SCRIPT.sec29 TO SEC29S.set_diffuseColor
ROUTE SCRIPT.sec30 TO SEC30S.set_diffuseColor
ROUTE SCRIPT.sec31 TO SEC31S.set_diffuseColor
ROUTE SCRIPT.sec32 TO SEC32S.set_diffuseColor
ROUTE SCRIPT.sec33 TO SEC33S.set_diffuseColor
ROUTE SCRIPT.sec34 TO SEC34S.set_diffuseColor
ROUTE SCRIPT.sec35 TO SEC35S.set_diffuseColor
ROUTE SCRIPT.sec36 TO SEC36S.set_diffuseColor
ROUTE SCRIPT.sec37 TO SEC37S.set_diffuseColor
ROUTE SCRIPT.sec38 TO SEC38S.set_diffuseColor
ROUTE SCRIPT.sec39 TO SEC39S.set_diffuseColor
ROUTE SCRIPT.sec40 TO SEC40S.set_diffuseColor
ROUTE SCRIPT.sec41 TO SEC41S.set_diffuseColor
ROUTE SCRIPT.sec42 TO SEC42S.set_diffuseColor
ROUTE SCRIPT.sec43 TO SEC43S.set_diffuseColor
ROUTE SCRIPT.sec44 TO SEC44S.set_diffuseColor
ROUTE SCRIPT.sec45 TO SEC45S.set_diffuseColor
ROUTE SCRIPT.sec46 TO SEC46S.set_diffuseColor
ROUTE SCRIPT.sec47 TO SEC47S.set_diffuseColor
ROUTE SCRIPT.sec48 TO SEC48S.set_diffuseColor
ROUTE SCRIPT.sec49 TO SEC49S.set_diffuseColor
ROUTE SCRIPT.sec50 TO SEC50S.set_diffuseColor
ROUTE SCRIPT.sec51 TO SEC51S.set_diffuseColor
ROUTE SCRIPT.sec52 TO SEC52S.set_diffuseColor
ROUTE SCRIPT.sec53 TO SEC53S.set_diffuseColor
ROUTE SCRIPT.sec54 TO SEC54S.set_diffuseColor
ROUTE SCRIPT.sec55 TO SEC55S.set_diffuseColor
ROUTE SCRIPT.sec56 TO SEC56S.set_diffuseColor
ROUTE SCRIPT.sec57 TO SEC57S.set_diffuseColor
ROUTE SCRIPT.sec58 TO SEC58S.set_diffuseColor
ROUTE SCRIPT.sec59 TO SEC59S.set_diffuseColor
ROUTE SCRIPT.s0 TO S0.set_diffuseColor
ROUTE SCRIPT.s15 TO S15.set_diffuseColor
ROUTE SCRIPT.s30 TO S30.set_diffuseColor
ROUTE SCRIPT.s45 TO S45.set_diffuseColor
ROUTE CLICK.isActive TO SCRIPT.clicked